home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
hacky_sack_jr.swf
/
scripts
/
DefineSprite_310
/
frame_28
/
DoAction.as
Wrap
Text File
|
2011-08-19
|
387b
|
18 lines
n += "1";
radius1 = _width / "2";
radius2 = getProperty("/ball", _width) / "2";
obj1_x = _X;
obj2_x = getProperty("/ball", _X);
delta_x = obj1_x - obj2_x;
obj1_y = _Y;
obj2_y = getProperty("/ball", _Y);
delta_y = obj1_y - obj2_y;
if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
{
gotoAndPlay(30);
}
else
{
gotoAndPlay(28);
}